package com.proj.bean;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

public class Order {
    private int id;
    private String code;
    private int userid;
    private BigDecimal money;
    private LocalDateTime addtime;
    private LocalDateTime paymenttime;
    private LocalDateTime deliverytime;
    private LocalDateTime arrivetime;
    private LocalDateTime endtime;
    private int state;
    private LocalDateTime updatetime;
    private List<Orderinfo> infos;
    private Orderaddress address;
    private List<String> Name;

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", userid=" + userid +
                ", money=" + money +
                ", addtime=" + addtime +
                ", paymenttime=" + paymenttime +
                ", deliverytime=" + deliverytime +
                ", arrivetime=" + arrivetime +
                ", endtime=" + endtime +
                ", state=" + state +
                ", updatetime=" + updatetime +
                ", infos=" + infos +
                ", address=" + address +
                ", Name=" + Name +
                '}';
    }

    public Order(int id, String code, int userid, BigDecimal money, LocalDateTime addtime, LocalDateTime paymenttime, LocalDateTime deliverytime, LocalDateTime arrivetime, LocalDateTime endtime, int state, LocalDateTime updatetime, List<Orderinfo> infos, Orderaddress address, List<String> name) {
        this.id = id;
        this.code = code;
        this.userid = userid;
        this.money = money;
        this.addtime = addtime;
        this.paymenttime = paymenttime;
        this.deliverytime = deliverytime;
        this.arrivetime = arrivetime;
        this.endtime = endtime;
        this.state = state;
        this.updatetime = updatetime;
        this.infos = infos;
        this.address = address;
        Name = name;
    }

    public Order() {
    }

    public List<String> getName() {
        return Name;
    }

    public void setName(List<String> name) {
        Name = name;
    }



    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public LocalDateTime getAddtime() {
        return addtime;
    }

    public void setAddtime(LocalDateTime addtime) {
        this.addtime = addtime;
    }

    public LocalDateTime getPaymenttime() {
        return paymenttime;
    }

    public void setPaymenttime(LocalDateTime paymenttime) {
        this.paymenttime = paymenttime;
    }

    public LocalDateTime getDeliverytime() {
        return deliverytime;
    }

    public void setDeliverytime(LocalDateTime deliverytime) {
        this.deliverytime = deliverytime;
    }

    public LocalDateTime getArrivetime() {
        return arrivetime;
    }

    public void setArrivetime(LocalDateTime arrivetime) {
        this.arrivetime = arrivetime;
    }

    public LocalDateTime getEndtime() {
        return endtime;
    }

    public void setEndtime(LocalDateTime endtime) {
        this.endtime = endtime;
    }

    public LocalDateTime getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(LocalDateTime updatetime) {
        this.updatetime = updatetime;
    }

    public List<Orderinfo> getInfos() {
        return infos;
    }

    public void setInfos(List<Orderinfo> infos) {
        this.infos = infos;
    }

    public Orderaddress getAddress() {
        return address;
    }

    public void setAddress(Orderaddress address) {
        this.address = address;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

}
